package com.zhentao.payment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.payment.entity.PaymentOrder;

public interface PaymentOrderService extends IService<PaymentOrder> {
    /**
     * 创建支付订单
     */
    PaymentOrder createOrder(PaymentOrder order);

    /**
     * 查询支付订单
     */
    PaymentOrder queryOrder(String orderNo);

    /**
     * 取消支付订单
     */
    void cancelOrder(String orderNo);

    /**
     * 分页查询支付订单列表
     */
    IPage<PaymentOrder> queryOrderList(String orderNo, Integer status, Integer paymentType, Integer page, Integer size);

    /**
     * 更新订单为已支付状态
     */
    void updateOrderToPaid(String orderNo);
} 